home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / database / ddf606a.arj / HELPDOC.EXE / INDEX.HLP < prev    next >
Text File  |  1994-03-02  |  6KB  |  110 lines

  1.       ╒═══════════════════════════════════════════════════════════════════╕
  2.       │                Creating and Selecting Index Files                 │
  3.       ╘═══════════════════════════════════════════════════════════════════╛
  4.  
  5.       The index sub-menu can be accessed from either "Index Create/Select"
  6.       in the main menu or while editing records by pressing <Alt-I>. Either
  7.       way, the sub-menu is the same.
  8.  
  9.                            A) Create New Index
  10.                            B) Set Controlling Index
  11.                            C) Select Index Files
  12.  
  13.       When an index file is active it causes records in the database to
  14.       appear in the order in which they were indexed. The key index field
  15.       is the first field selected when creating an index file and this is
  16.       what determines the record order.
  17.  
  18.       Records with a blank key index field appear first, numbers are
  19.       second, then lower case and upper case characters. This order may be
  20.       seen when paging up and down through the database from "Edit/Add
  21.       Records" or when printing labels, letters or a master list. For
  22.       example, if you created an index on the zip code field, records with
  23.       a blank zip code field will appear first, others will appear in order
  24.       starting on the east coast and ending on the west coast.
  25.  
  26.       An index is most often used for printing labels in zip code order by
  27.       selecting the zip code as your key (1st) index field. DDFile also
  28.       uses index files for duplicate record searching and seeking.
  29.  
  30.       If an index is active when exporting records, the records will be
  31.       copied to the new database in index order. This is commonly known as
  32.       a sort. The index order of the old (current) database is the natural
  33.       order of the new (exported) database. See "Importing and Exporting"
  34.       in the on-line documentation.
  35.  
  36.  
  37.       A) Create New Index
  38.       ─────────────────────────────────────────────────────────────────────
  39.       This selection will create an index file for the current database. Up
  40.       to 15 index files are allowed per database. Index files have a NTX
  41.       filename extention.
  42.  
  43.       Index files cause the records in a database to appear in the index
  44.       order of the field(s) the index was created on. If the key index
  45.       field is a date field, the index order would be chronological. If the
  46.       key index field is a character field, the index order would be
  47.       alphabetical. This index order is only active when the index file is
  48.       selected as the controlling index. The controlling index is selected
  49.       with the next command in this sub-menu.
  50.  
  51.       If 15 index files already exist for the selected database, you will
  52.       have to inactivate one or more of the active index files in order to
  53.       create others. To inactivate an index, select the "Select Index
  54.       Files" command in this sub-menu. Then, select only the index files
  55.       that you want to use. The unwanted index files may then be deleted
  56.       with "Copy/Rename/Delete/Edit Files" in the main menu. See "File
  57.       Management" in the on-line documentation.
  58.  
  59.       If less than 15 index files currently exist for the selected
  60.       database, the fields in the database will be displayed in a window.
  61.       You can select up to five fields to index on.
  62.  
  63.       If you select a character field, you will be prompted to specify how
  64.       many characters of the field to include in the index. If, for
  65.       example, you are creating an index on the zip code and the zip code
  66.       field is 10 characters long (zip+4) you would only want to index on
  67.       the first 5 characters, especially if your secondary index field is
  68.       the carrier route sort field. In this example enter 5.
  69.  
  70.       NOTE: Logical and memo fields can not be indexed.
  71.  
  72.       After selecting the fields to index on, you are asked to enter a name
  73.       to call the database. Type a name up to 8 characters long and press
  74.       <Enter>. The index file will then be created. The new index file is
  75.       automatically added on to the end of the list of selected index files
  76.       as long as there are less than 15 index files selected.
  77.  
  78.  
  79.       B) Set Controlling Index
  80.       ─────────────────────────────────────────────────────────────────────
  81.       This selection will allow you to set the controlling index. This can
  82.       only be done if one or more index files have been selected with the
  83.       "Select Index Files" command. Select one of the current index files
  84.       or press <Esc> to select natural record order.
  85.  
  86.       Upon selecting an index file, the list of index fields will be
  87.       displayed in a box followed by a description of the field in
  88.       parenthesis. The description will be either C, N or D representing
  89.       Character, Numeric or Date field respectively. If the field is a
  90.       character field and the index was created on a portion of the field
  91.       the "C" will be followed by the number of characters that were
  92.       included in the index such as (C-10).
  93.  
  94.  
  95.       C) Select Index Files
  96.       ─────────────────────────────────────────────────────────────────────
  97.       This selection will allow you to select any index files to be used
  98.       with the selected database. If you select an index that was created
  99.       for another database where the field names or types do not match the
  100.       currently selected database you will be informed so and will not be
  101.       able to select it. Once you have selected the index files you may
  102.       select the prior command; "Set Controlling Index" to select the
  103.       active (controlling) index file.
  104.  
  105.       Index files selected are always kept updated automatically to insure
  106.       record integrity. These index files will be reselected automatically
  107.       upon selecting the database as long as they have not been used by any
  108.       other database and as long as the database itself is not modified.
  109.  
  110.